package com.power.using.mydaggerp.ui.fragment.home;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.power.using.mydaggerp.R;
import com.power.using.mydaggerp.ui.fragment.home.child.HomeFragment;
import com.zyw.horrarndoo.sdk.base.fragment.BaseCompatFragment;

/**
 * Created by 聪明一只哈 on 2019/10/10.
 * Time: 2019/10/10  10:39
 */
public class HomeRootFragment extends BaseCompatFragment{


    public static HomeRootFragment newInstance(){
        Bundle bundle = new Bundle();
        HomeRootFragment fragment = new HomeRootFragment();
        fragment.setArguments(bundle);
        return fragment;
    }


    @Override
    public int getLayoutId() {
        return R.layout.fragment_home;
    }

    @Override
    public void initUI(View view, @Nullable Bundle savedInstanceState) {

        if(findChildFragment(HomeRootFragment.class)==null){
            loadRootFragment(R.id.fl_container, HomeFragment.newInstance());
        }
    }
}
